<!DOCTYPE html>
<html>

<head>
    <title>预防针后台管理</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <style>

    </style>
</head>

<!-- 导航栏 -->
<nav class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
    <a class="navbar-brand" href="#">儿童预防针预约系统管理平台-{$Think.session.hospital_name}端</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="navbar-nav">
            <!-- <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>     -->
        </ul>
    </div>
</nav>
<br>
<!-- 导航栏end -->
<!-- 内容 -->
<div class="container-fluid" style="height: 80vh;margin-top: 60px;">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group aa " style="overflow:auto;">
                <a href="{:url('adminhos/index')}" class="list-group-item list-group-item-action">预约单管理</a>
                <a href="{:url('adminhos/date')}" class="list-group-item list-group-item-action">预约日期管理</a>
                <a href="{:url('adminhos/updatepw')}" class="list-group-item list-group-item-action">修改密码</a>
            </div>
            <a href="{:url('index/logout')}" class="btn btn-danger" style="width: 100%;margin-top: 20px;"
                role="button">注销</a>
        </div>
        <div class="col-md-10">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="index.html">首页</a></li>
                <li class="breadcrumb-item active">修改密码</li>
            </ol>
            <div class="card">
                <div class="card-body">
                    <form action="{:url('adminhos/updatepw1')}" method="POST" onsubmit="return check()">
                        <div class="form-group">
                            <label for="pwd">原密码:</label>
                            <input type="password" class="form-control" name="pw" id="pwd1" required>
                        </div>
                        <div class="form-group">
                            <label for="pwd">新密码:</label>
                            <input type="password" class="form-control" name="pw1" id="pwd2" required>
                        </div>
                        <div class="form-group">
                            <label for="pwd">再次输入新密码:</label>
                            <input type="password" class="form-control" id="pwd3" required>
                        </div>
                        <button type="submit" class="btn btn-primary">修改</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 内容end -->


<!-- 底部  -->
<div class="jumbotron text-center" style="margin-bottom:0">
    <p>@2020-tch</p>
</div>

<!-- 底部end  -->
</body>
<script>
    function check(){
        var pwd2 = document.getElementById('pwd2').value;
    var pwd3 = document.getElementById('pwd3').value;
    //  console.log(pwd1);
    //  console.log(pwd2);
     if(pwd3!= pwd2){
        alert("两次密码输入不一致");
        return false;
     }
    }
    </script>
</html>